#include <stdio.h>
#include <string.h>

char zf(char a[]) {
	char t;
	int i, j;
	for (i = 0, j = strlen(a); i < j; i++, j--) {
		t = a[i];
		a[i] = a[j - 1];
		a[j - 1] = t;
	}
}

int main () {
	char a[40];
	gets (a);
	zf(a);
	puts (a);
}
